Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localize SuperSplat to Chinese, Japanese and Korean #192

Merged
merged 10 commits into from
Sep 25, 2024
Merged

Conversation

willeastcott
Copy link
Contributor

@willeastcott willeastcott commented Sep 24, 2024

Use i18next to localize SuperSplat. Initially, Chinese, Japanese and Korean have been added as the first non-English languages:

Chinese:

image

Japanese:

image

Korean:

image

Note: the localization should autoselect based on the browser's locale. However, you can force it with the lng query parameter (i.e. https://playcanvas.com/supersplat/editor?lng=ko).

We could potentially externalize the strings in future, but for now, it's quite convenient to have them in the code.

@willeastcott willeastcott added the enhancement New feature label Sep 24, 2024
@willeastcott willeastcott self-assigned this Sep 24, 2024
@willeastcott
Copy link
Contributor Author

If any Japanese speakers can check the translations, I would really appreciate it! I used Copilot to generate them.

@willeastcott willeastcott changed the title Localize SuperSplat to Japanese Localize SuperSplat to Japanese, Korean and Chinese Sep 24, 2024
@willeastcott willeastcott changed the title Localize SuperSplat to Japanese, Korean and Chinese Localize SuperSplat to Chinese, Japanese and Korean Sep 24, 2024
Copy link
Member

@slimbuck slimbuck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastichi!

@willeastcott willeastcott merged commit 6706a59 into main Sep 25, 2024
2 checks passed
@willeastcott willeastcott deleted the localization branch September 25, 2024 10:01
@yushimatenjin
Copy link
Contributor

Hello! I've submitted a Pull Request to review and fix the Japanese translation.
#193

@willeastcott
Copy link
Contributor Author

Thanks, @yushimatenjin - this is now deployed. Can you please go here and verify that the UI is automatically set to Japanese for you?
https://playcanvas.com/supersplat/editor

@yushimatenjin
Copy link
Contributor

@willeastcott
I accessed it and it seems to be working fine!

deploy-01

@willeastcott
Copy link
Contributor Author

That's excellent. Thanks for confirming!

@willeastcott
Copy link
Contributor Author

Hey @nmgyaoyuan, are the Chinese translations OK?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants